package com.lecture.java8.sharding;//package com.lecture.java8.sharding;
//
//import com.alibaba.fastjson.JSONObject;
//import org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration;
//
//import java.util.ArrayList;
//import java.util.List;
//
//public class ShardingConfig {
//
//    public static void createShardingRuleConfiguration() {
//        ShardingRuleConfiguration shardingRuleConfiguration = new ShardingRuleConfiguration();
//        List<String> list = new ArrayList<>();
//        list.add("A");
//        JSONObject jsonObject = new JSONObject();
//        jsonObject.put("distinctFlag",true);
//        jsonObject.put("roles",list);
//        jsonObject.put("systemId","B");
//
//    }
//}
